part of 'joy_home_bloc.dart';

@immutable
sealed class JoyHomeState {}

class JoyHomeInitial extends JoyHomeState {}


class GetJOYSearchCategoryProductEventSuccess extends JoyHomeState {
  final dynamic data;
  GetJOYSearchCategoryProductEventSuccess(this.data);
}

class GetJOYSearchCategoryProductEventFailure extends JoyHomeState {
  final dynamic errMsg;
  GetJOYSearchCategoryProductEventFailure(this.errMsg);
}

// 添加缺失的搜索产品状态类
class GetJOYSearchProductEventSuccess extends JoyHomeState {
  final dynamic data;
  GetJOYSearchProductEventSuccess(this.data);
}

class GetJOYSearchProductEventFailure extends JoyHomeState {
  final dynamic errMsg;
  GetJOYSearchProductEventFailure(this.errMsg);
}

class GetJOYHomeDataBannerAndProductEventSuccess extends JoyHomeState {
  final data;
  GetJOYHomeDataBannerAndProductEventSuccess(this.data);
}

class GetJOYHomeDataBannerAndProductEventFailure extends JoyHomeState {
  final errMsg;
  GetJOYHomeDataBannerAndProductEventFailure(this.errMsg);
}

class GetJOYHomeCategoryEventSuccess extends JoyHomeState {
  final data;
  GetJOYHomeCategoryEventSuccess(this.data);
}

class GetJOYHomeCategoryEventFailure extends JoyHomeState {
  final errMsg;
  GetJOYHomeCategoryEventFailure(this.errMsg);
}

class postUserLoginEventSuccess extends JoyHomeState {
  final data;
  postUserLoginEventSuccess(this.data);
}

class postUserLoginEventFailure extends JoyHomeState {
  final errMsg;
  postUserLoginEventFailure(this.errMsg);
}

class GetJOYHotProductListEventSuccess extends JoyHomeState {
  final data;
  GetJOYHotProductListEventSuccess(this.data);
}

class GetJOYHotProductListEventFailure extends JoyHomeState {
  final errMsg;
  GetJOYHotProductListEventFailure(this.errMsg);
}

class postUserLoginOutEventSuccess extends JoyHomeState {
  final data;
  postUserLoginOutEventSuccess(this.data);
}

class postUserLoginOutEventFailure extends JoyHomeState {
  final errMsg;
  postUserLoginOutEventFailure(this.errMsg);
}


class GetJOYProductDetailEventSuccess extends JoyHomeState {
  final data;
  GetJOYProductDetailEventSuccess(this.data);
}

class GetJOYProductDetailEventFailure extends JoyHomeState {
  final errMsg;
  GetJOYProductDetailEventFailure(this.errMsg);
}


class GetJOYSearchKeyListEventSuccess extends JoyHomeState {
  final data;
  GetJOYSearchKeyListEventSuccess(this.data);
}

class GetJOYSearchKeyListEventFailure extends JoyHomeState {
  final errMsg;
  GetJOYSearchKeyListEventFailure(this.errMsg);
}


class PostUploadFileEventSuccess extends JoyHomeState{
  final data;
  PostUploadFileEventSuccess(this.data);
}
class PostUploadFileEventFailure extends JoyHomeState{
  final errMsg;
  PostUploadFileEventFailure(this.errMsg);
}

class GetJOYSearchImagesEventSuccess extends JoyHomeState {
  final data;
  GetJOYSearchImagesEventSuccess(this.data);
}


class GetJOYSearchImagesEventFailure extends JoyHomeState {
  final errMsg;
  GetJOYSearchImagesEventFailure(this.errMsg);
}


// 图片搜索
class GetSearchImageEventSuccess extends JoyHomeState {
  final dynamic data;
  GetSearchImageEventSuccess(this.data);
}

class GetSearchImageEventFailure extends JoyHomeState {
  final dynamic errMsg;
  GetSearchImageEventFailure(this.errMsg);
}

// 相似图片图片搜索
class GetSearchSimilarityImageEventSuccess extends JoyHomeState {
  final data;
  GetSearchSimilarityImageEventSuccess(this.data);
}

class GetSearchSimilarityImageEventFailure extends JoyHomeState {
  final errMsg;
  GetSearchSimilarityImageEventFailure(this.errMsg);
}

// 判断是否收藏
class postProductIsCollectedEventSuccess extends JoyHomeState {
  final data;
  postProductIsCollectedEventSuccess(this.data);
}

class postProductIsCollectedEventFailure extends JoyHomeState {
  final errMsg;
  postProductIsCollectedEventFailure(this.errMsg);
}

// 添加收藏
class postAddProductCollectedEventSuccess extends JoyHomeState {
  final data;
  postAddProductCollectedEventSuccess(this.data);
}

class postAddProductCollectedEventFailure extends JoyHomeState {
  final errMsg;
  postAddProductCollectedEventFailure(this.errMsg);
}

// 收藏列表
class PostProductCollectedListEventSuccess extends JoyHomeState {
  final data;
  PostProductCollectedListEventSuccess(this.data);
}

class PostProductCollectedListEventFailure extends JoyHomeState {
  final errMsg;
  PostProductCollectedListEventFailure(this.errMsg);
}

// 历史预览数据
class GetHistoryProductViewEventSuccess extends JoyHomeState {
  final data;
  GetHistoryProductViewEventSuccess(this.data);
}

class GetHistoryProductViewEventFailure extends JoyHomeState {
  final errMsg;
  GetHistoryProductViewEventFailure(this.errMsg);
}